package com.bawei.hgshop.entity;

import java.io.Serializable;

/**
 * 规格选项   比如衣服的尺码：xxl  xl  sl  
 * @时间  2021-1-12  8:45:34
 *
 */
public class SpecOption implements Serializable {
	
	
	 /**
	 * 
	 */ 
	private static final long serialVersionUID = -4348840509086426083L;
	private int id;
	 private String  optionName;// 属性名称  红色 蓝色 256GB  xl
	 private int specId;        
	 private String specName; // 规格的名称  颜色  尺寸  大小  内存 硬盘 
	 private int orders;
	 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getOptionName() {
		return optionName;
	}
	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}
	public int getSpecId() {
		return specId;
	}
	public void setSpecId(int specId) {
		this.specId = specId;
	}
	public int getOrders() {
		return orders;
	}
	public void setOrders(int orders) {
		this.orders = orders;
	}
	
	
	
	public String getSpecName() {
		return specName;
	}
	public void setSpecName(String specName) {
		this.specName = specName;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + ((optionName == null) ? 0 : optionName.hashCode());
		result = prime * result + orders;
		result = prime * result + specId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SpecOption other = (SpecOption) obj;
		if (id != other.id)
			return false;
		if (optionName == null) {
			if (other.optionName != null)
				return false;
		} else if (!optionName.equals(other.optionName))
			return false;
		if (orders != other.orders)
			return false;
		if (specId != other.specId)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "SpecOption [id=" + id + ", optionName=" + optionName + ", specId=" + specId + ", specName=" + specName
				+ ", orders=" + orders + "]";
	}
	
	
	public SpecOption(int id, int specId) {
		super();
		this.id = id;
		this.specId = specId;
	}
	
	public SpecOption() {
		super();
		// TODO Auto-generated constructor stub
	} 
	
	
	
	
	
	
	
	
	 
	 
	 
	 


}
